﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Update
{
	/// <summary>
	/// 
	/// </summary>
    public class MainWindowMoelds : DependencyObject
    {
		private string Loading_;
		/// <summary>
		/// 动画
		/// </summary>
		public string Loading
        {
			get { return Loading_; }
			set { Loading_ = value; }
		}
		//private bool IsDouble_;

		//public bool IsDouble
  //      {
		//	get { return IsDouble_; }
		//	set { IsDouble_ = value; }
		//}

		/// <summary>
		/// 控制动画属性
		/// </summary>
		public bool IsDouble
        {
			get { return (bool)GetValue(IsDoubleProperty); }
			set { SetValue(IsDoubleProperty, value); }
		}

		// Using a DependencyProperty as the backing store for IsDouble.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty IsDoubleProperty =
			DependencyProperty.Register("IsDouble", typeof(bool), typeof(MainWindowMoelds), new PropertyMetadata(false));


		/// <summary>
		/// 进度描述
		/// </summary>
		public string ProgressBarDescribe
        {
			get { return (string)GetValue(ProgressBarDescribeProperty); }
			set { SetValue(ProgressBarDescribeProperty, value); }
		}

		// Using a DependencyProperty as the backing store for ProgressBarDescribe.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty ProgressBarDescribeProperty =
			DependencyProperty.Register("ProgressBarDescribe", typeof(string), typeof(MainWindowMoelds), new PropertyMetadata(""));

		/// <summary>
		/// 进度条
		/// </summary>
		public int ProgressBarValue
        {
			get { return (int)GetValue(ProgressBarValueProperty); }
			set { SetValue(ProgressBarValueProperty, value); }
		}

		// Using a DependencyProperty as the backing store for ProgressBarValue.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty ProgressBarValueProperty =
			DependencyProperty.Register("ProgressBarValue", typeof(int), typeof(MainWindowMoelds), new PropertyMetadata(0));



	}
}
